Skip to content

Add MacOS fix for serving DHCP IP broadcast - #1990

Merged
ShreyasZare merged 3 commits into
TechnitiumSoftware:macos-dhcp-issuefrom
nicholas-shi:bugfix/macos-dhcp-network-unreachable
Jun 27, 2026
Merged

Add MacOS fix for serving DHCP IP broadcast#1990
ShreyasZare merged 3 commits into
TechnitiumSoftware:macos-dhcp-issuefrom
nicholas-shi:bugfix/macos-dhcp-network-unreachable

Conversation

@nicholas-shi

@nicholas-shi nicholas-shi commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

On MacOS host systems, there is an issue with DHCP broadcasting IP addresses which results in a Network Unreachable error (#1674).

Based off of fix from insomniacslk/dhcp#378

@nicholas-shi
nicholas-shi marked this pull request as ready for review June 20, 2026 13:16
@ShreyasZare

Copy link
Copy Markdown
Member

Thanks for the PR. The implementation here has race condition so it is going to fail to work at times when the server receives requests concurrently.

Have you tried by just removing the SocketFlags.DontRoute to see if that works?

@nicholas-shi

Copy link
Copy Markdown
Contributor Author

Ah, that would have been much easier. Just removing SocketFlags.DontRoute also works, updated the code to do that

@ShreyasZare

Copy link
Copy Markdown
Member

Thanks for confirming. Good to know its working without that flag.

@ShreyasZare
ShreyasZare changed the base branch from master to macos-dhcp-issue June 27, 2026 13:54
@ShreyasZare
ShreyasZare merged commit 7a82634 into TechnitiumSoftware:macos-dhcp-issue Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants